#!/bin/bash 

PIDS=`ps -a | grep java | awk '{print $1}'`
CLUSTER_SCRIPTS=`ps -a | grep clusterNodes | awk '{print $1}'`

for i in $CLUSTER_SCRIPTS
do
#	echo "killing $i"
	kill $i
done

count=1;
for i in $PIDS 
do  
	echo "$count) killing $i"
	kill $i 
	let count=$count+1
done

exit 0

